	YAHOO.MANAGERSHEET.reportingPolicy.dwr.showMessage =  function (message) 
	{
		alert(message);
	}
	
	function updateReportingPolicy(setting)
	{
		JDwrHelper.updateReportingPolicy(setting, YAHOO.MANAGERSHEET.reportingPolicy.dwr.showMessage);	
	}
			
	
	
function setReportingPolicy()
{
 	var setting = window.document.getElementById("reportingPolicy").value;
	
	if (setting == 1)
	{
		window.document.getElementById("reportingPolicyAllowed").checked = true;
		window.document.getElementById("reportingPolicyNotAllowed").checked = false;
	}
	else
	{
		window.document.getElementById("reportingPolicyAllowed").checked = false;
		window.document.getElementById("reportingPolicyNotAllowed").checked = true;
	}

}

YAHOO.util.Event.onAvailable("reportingPolicy", setReportingPolicy);